package com.liujg.future.mapper;

import com.liujg.future.model.entity.GoodsDetail;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

import java.util.List;

public interface ShopGoodsDetailRepository extends MongoRepository<GoodsDetail, String> {

    @Query(value = "{ 'skus.id' : ?0 }")
    List<GoodsDetail> findBySkusId(String id);
}
